﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ahi.Entity.BaseClasses
{
    class BaseEntityCollection<T> : List<T>
    {
        public List<T> GetAll()
        {
            string collectionName = Utilities.MongoUtil.GetDBCollectionName(typeof(T));

            return MongoAdaptor.DB.GetCollection<T>(collectionName).FindAll().ToList();
        }
    }
}
